\name{summary-methods}
\docType{methods}
\alias{summary-methods}
\alias{summary,VAObject-method}
\alias{summary.IntData}
\alias{coef.IntData}
\alias{vcov.IntData}
\title{Methods for Function summary}
\description{Methods for function \code{summary} for the custom classes \code{VAObject} and \code{IntData} in \pkg{Jmisc}}
\section{Methods}{
\describe{
  \item{VAObject}{\code{signature(object="VAObject")}}
  \item{IntData}{\code{summary}, \code{vcov}, \code{coef}}
}}
\usage{
\S4method{summary}{VAObject}(object, weightbest = TRUE, w = c(.75, .25))
\S3method{summary}{IntData}(object, digits = getOption("digits"), verbose = FALSE, ...)
\S3method{vcov}{IntData}(object, ...)
\S3method{coef}{IntData}(object, ...)
}
\arguments{
  \item{object}{An object of class \code{VAObject} or \code{IntData}}
  \item{weightbest}{Logical whether to apply the first weight to the eye with the best visual acuity or simply the left eye.  Defaults to \code{TRUE}.}
  \item{w}{The weights to be applied to either the best and worst eyes (if \code{weightbest = TRUE}, the default) or the left and right eyes (if \code{weightbest = FALSE}).  The default weights are \code{c(.75, .25)}.}
  \item{digits}{The number of digits to print.  By default uses the current option.}
  \item{verbose}{Logical, whether the summary should print verbose output or not.  Default to FALSE}.
  \item{\ldots}{Not currently used.}
}

\value{
  An object of class \code{VASummaryObject} which contains all the slots of a \code{VAObject} plus the following:
  \item{@logMAR.combined}{The combined logMAR values from both eyes, weighted using the weights (defaults are supplied but they may be overwritten to provide equal weights).}
  \item{@snellen.combined}{The combined logMAR values back transformed to snellen values}
  \item{@mean.logMAR}{The arithmetic mean of the combined logMAR values}
  \item{@mean.snellen}{The mean combined logMAR value back transformed to snellen values}
  No object is returned for \code{summary.IntData}.  It is called for
  its side effect of printing output.  \code{summary.IntData} relies
  partly on the \code{coef.IntData} and \code{vcov.IntData} methods.
}
\keyword{methods}
